package com.hw.protocol.tool.config;

import com.hw.protocol.tool.model.History;
import javafx.beans.property.SimpleStringProperty;
import javafx.beans.property.StringProperty;
import javafx.collections.FXCollections;
import javafx.collections.ObservableList;

import java.util.LinkedList;
import java.util.List;

/**
 * @author : lihy
 * @date : 2024/3/12 10:24
 * description:
 */

public class DecodeContext {

    /**
     * 协议列表
     */
    public final static List<String> PROTOCOL_LIST = new LinkedList<>();

    /**
     * 当前协议
     */
    public static String currentProtocol = "";

    /**
     * 当前密钥
     */
    public static String key = "";

    public static String jkSessionkey = "";

    public static String jkMackey = "";

    public static final StringProperty KEY_STATUS = new SimpleStringProperty("未设置");

    public static List<History> historyList = new LinkedList<>();

    public static ObservableList<History> historyObs = FXCollections.observableArrayList();

    static {
        PROTOCOL_LIST.add("hw");
        PROTOCOL_LIST.add("hb");
        PROTOCOL_LIST.add("tx");
        PROTOCOL_LIST.add("jk");
    }
}
